﻿/**************************************************************
 * Description:
 * SHFastShipUIAction.cs
 * Product: U9
 * Co.    : UFSoft Group
 * Author : Auto Generated 
 * version: 1.0
 **************************************************************/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UFSoft.UBF.Util.Log;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.ActionProcess;
using UFSoft.UBF.ExportService;




namespace SHFastShipUI
{
	public partial class SHFastShipUIAction 
	{
		public override void OnInitAction()
		{
			base.OnInitAction();
			//提示:可注册你自己的方法到相应的事件中,如下.
			//this.CommonAction.BeforeLoad += new ActionLoadDelegate(CommonAction_BeforeLoad);
		}

        private void OnUnReserve_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.OnUnReserve_DefaultImpl(sender, e);
        }

        private void OnDocOpen_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.OnDocOpen_DefaultImpl(sender, e);
        }

        private void OnDocClose_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.OnDocClose_DefaultImpl(sender, e);
        }

        private void OnGetZYWH_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.OnGetZYWH_DefaultImpl(sender, e);
        }

        private void OnReserve_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.OnReserve_DefaultImpl(sender, e);
        }

        private void OnLoadAvailableQty_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.OnLoadAvailableQty_DefaultImpl(sender, e);
        }

        private void OnPrintSHBill_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.OnPrintSHBill_DefaultImpl(sender, e);
        }

        private void OnPrintSHShip_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.OnPrintSHShip_DefaultImpl(sender, e);
        }

        private void GetDefaultWH_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.GetDefaultWH_DefaultImpl(sender, e);
        }

        private void OnShipToRCV_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.OnShipToRCV_DefaultImpl(sender, e);
        }

        private void OnShipToSO_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.OnShipToSO_DefaultImpl(sender, e);
        } 

        private void ReLoad_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.ReLoad_DefaultImpl(sender, e);
        }

        private void SaveClick_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.SaveClick_DefaultImpl(sender, e);
        }
        private void CancelClick_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.CancelClick_DefaultImpl(sender, e);
        }
        private void NewClick_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.NewClick_DefaultImpl(sender, e);
        }
        private void DeleteClick_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.DeleteClick_DefaultImpl(sender, e);
        }
        private void CopyClick_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.CopyClick_DefaultImpl(sender, e);

        }

        private void SubmitClick_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.SubmitClick_DefaultImpl(sender, e);
        }
        private void ApproveClick_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.ApproveClick_DefaultImpl(sender, e);
        }
        private void FindClick_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.FindClick_DefaultImpl(sender, e);
        }
        private void ListClick_Extend(object sender, UIActionEventArgs e)
        {
            //List Click Code Demo...
            //this.CurrentPart.NavigatePage("TestList", null);
            //this.ListClick_DefaultImpl(sender,e) ;	


            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.ListClick_DefaultImpl(sender, e);
        }
        private void FirstPage_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.FirstPage_DefaultImpl(sender, e);
        }
        private void PrevPage_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.PrevPage_DefaultImpl(sender, e);
        }
        private void NextPage_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.NextPage_DefaultImpl(sender, e);
        }
		private void LastPage_Extend(object sender, UIActionEventArgs e)
		{
	
			

			//调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
this.LastPage_DefaultImpl(sender,e);								
        } 
		private void AttachmentClick_Extend(object sender, UIActionEventArgs e)
		{
	
			

			//调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
this.AttachmentClick_DefaultImpl(sender,e);								
        }
        private void FlowClick_Extend(object sender, UIActionEventArgs e)
        {



            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.FlowClick_DefaultImpl(sender, e);
        }

        private void OutputClick_Extend(object sender, UIActionEventArgs e)
        {

            IExportSettings settings = ExportServiceFactory.GetInstance().CreateExportSettingsObject();
            settings.PrintTemplateCatalogType = "UFIDA.U9.Cust.SH.FastShip";
            settings.DefaultPrintTemplateID = "45d49980-850c-432f-8837-6de65894455c";
            e.Tag = settings;

            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.OutputClick_DefaultImpl(sender, e);
        }

        private void PrintClick_Extend(object sender, UIActionEventArgs e)
        {

            IExportSettings settings = ExportServiceFactory.GetInstance().CreateExportSettingsObject();
            settings.PrintTemplateCatalogType = "UFIDA.U9.Cust.SH.FastShip";
            if (this.CurrentModel.SHFastShip.FocusedRecord != null
                && this.CurrentModel.SHFastShip.FocusedRecord.DocType_Code == "914")
                settings.DefaultPrintTemplateID = "998a7bc0-e069-407f-8303-22aac7b2415e";
            else
                settings.DefaultPrintTemplateID = "45d49980-850c-432f-8837-6de65894455c";
            e.Tag = settings;

            //调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
            this.PrintClick_DefaultImpl(sender, e);
        }

		private void OnOk_Extend(object sender, UIActionEventArgs e)
		{
	
			

			//调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
this.OnOk_DefaultImpl(sender,e);								
        } 
		private void OnClose_Extend(object sender, UIActionEventArgs e)
		{
	
			

			//调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
this.OnClose_DefaultImpl(sender,e);								
        } 
		private void OnUnApprove_Extend(object sender, UIActionEventArgs e)
		{
	
			

			//调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
this.OnUnApprove_DefaultImpl(sender,e);								
        } 
		private void OnSOList_Extend(object sender, UIActionEventArgs e)
		{
	
			

			//调用模版定义的默认实现方法.如需扩展,请直接在此编程.			
this.OnSOList_DefaultImpl(sender,e);								
        } 
		
		#region UBF 内置两数据处理Action
		//数据加载的扩展
		private void OnLoadData_Extend(object sender, UIActionEventArgs e)
		{
this.OnLoadData_DefaultImpl(sender,e);			
		}

		//数据收集的扩展
		private void OnDataCollect_Extend(object sender, UIActionEventArgs e)
		{
			this.OnDataCollect_DefaultImpl(sender,e);
		}
		#endregion 
		

	}
}
